<!--
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-10-04 19:36:51
 * @LastEditTime: 2019-10-05 14:04:01
 * @LastEditors: Please set LastEditors
 -->
<template>
    <div>
        <swiper :lunbotuList="lubotu" :isFull="true"></swiper>
        <ul class="mui-table-view mui-grid-view mui-grid-6">
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/newsList">
		                    <img src="../../images/menu1.png" alt="menu1">
		                    <div class="mui-media-body">新闻资讯</div></router-link>
                    </li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/photoList">
		                    <img src="../../images/menu2.png" alt="menu2">
		                    <div class="mui-media-body">图片分享</div></router-link>
                    </li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/goodsList">
		                     <img src="../../images/menu3.png" alt="menu3">
		                    <div class="mui-media-body">商品购买</div></router-link>
                    </li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                     <img src="../../images/menu4.png" alt="menu4">
		                    <div class="mui-media-body">留言反馈</div></a>
                    </li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                     <img src="../../images/menu5.png" alt="menu5">
		                    <div class="mui-media-body">视频专区</div></a>
                    </li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                     <img src="../../images/menu6.png" alt="menu6">
		                    <div class="mui-media-body">联系我们</div></a>
                    </li>
		        </ul> 
    </div>
</template>
<script>
import { Toast } from 'mint-ui'
import swiper from '../subcomponents/swiper.vue'
export default {
   data(){
       return{
           lubotu:[]
       }
   },
   created(){
       this.getLuBoTu();
   },
   methods:{
       getLuBoTu(){
           this.$http.get("api/getlunbo").then(result=>{
               var res=result.body;
                if(res.status===0){
                    this.lubotu=res.message;
                }else{
                    Toast({
                        message: '轮播图加载失败',
                        position: 'center',
                        duration: 2000
                    });
                }
           })
       }
   },
   components:{
     swiper
   }
}
</script>
<style lang="scss" scoped>
    .mui-table-view{     
        img{
            width: 50px;
            height: 50px;
        }
    }
    .mui-media-body{
        font-size: 12px!important;
    }    
</style>